﻿using System;
using DevExpress.XtraEditors;
using DevExpress.XtraSplashScreen;
using Sumen.Library.Enum;
using Sumen.Library.Interface;

namespace Sumen.Library.Froms
{
    public class XtraUserControlKira : XtraUserControl
    {
        private EnumFormCode _formCode;
        public Library.Enum.EnumFormCode FormCode
        {
            get { return _formCode; }
            set { _formCode = value; }
        }
        public bool IsChange
        {
            get;
            set;
        }
        public bool IsSuccess
        {
            get;
            set;
        }

        public string SetText { get { return Text; } set { Text = value; } }

        public XtraUserControlKira()
        {
            IsChange = false;
            AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.Load += XtraUserControlKira_Load;
        }

        public override void Refresh()
        {
            SplashScreenManager.ShowForm(typeof(WaitForm1));
            base.Refresh();
            LoadForm();
            SplashScreenManager.CloseForm();
        }



        private void XtraUserControlKira_Load(object sender, EventArgs e)
        {
            LoadForm();
        }




        public virtual void ResetForm()
        {
            
        }

        public virtual void LoadForm()
        {

        }

        public virtual bool Validation()
        {
            return true;
        }

        public virtual bool add()
        {
            return true;
        }

        public virtual bool update()
        {
            return true;
        }

        public virtual bool delete()
        {
            return true;
        }

        public virtual bool print()
        {
            return true;
        }

        public virtual bool exportWord()
        {
            return true;
        }

        public virtual bool exportExcel()
        {
            return true;
        }

        public virtual bool approved()
        {
            return true;
        }

        public virtual bool report()
        {
            return true;
        }
    }
}
